import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const Recommend = (resolve) => {
  import('../views/recommend').then((module) => {
    resolve(module)
  })
}

const LotteryRecord = (resolve) => {
  import('../views/lotteryRecord').then((module) => {
    resolve(module)
  })
} 

const Money = (resolve) => {
  import('../views/money').then((module) => {
    resolve(module)
  })
}

const Recharge = (resolve) => {
  import('../views/moneyDetails/recharge').then((module) => {
    resolve(module)
  })
}

const RechargeOrder = (resolve) => {
  import('../views/moneyDetails/rechargeOrder').then((module) => {
    resolve(module)
  })
}

const RechargeHtml = (resolve) => {
  import('../views/moneyDetails/rechargeHtml').then((module) => {
    resolve(module)
  })
}

const RechargeResult = (resolve) => {
  import('../views/moneyDetails/rechargeResult').then((module) => {
    resolve(module)
  })
}

const Withdrawal = (resolve) => {
  import('../views/moneyDetails/withdrawal').then((module) => {
    resolve(module)
  })
}

const WithdrawalResult = (resolve) => {
  import('../views/moneyDetails/withdrawalResult').then((module) => {
    resolve(module)
  })
}

const TradingRecords = (resolve) => {
  import('../views/moneyDetails/tradingRecords').then((module) => {
    resolve(module)
  })
}

const User = (resolve) => {
  import('../views/user').then((module) => {
    resolve(module)
  })
}

const MyRecord = (resolve) => {
  import('../views/userCenter/myRecord').then((module) => {
    resolve(module)
  })
}

const AccountDetails = (resolve) => {
  import('../views/userCenter/accountDetails').then((module) => {
    resolve(module)
  })
}

const PersonalMsg = (resolve) => {
  import('../views/userCenter/personalMsg').then((module) => {
    resolve(module)
  })
}

const PersonalLoginPsw = (resolve) => {
  import('../views/userCenter/personalLoginPsw').then((module) => {
    resolve(module)
  })
}

const PersonalDrawalPsw = (resolve) => {
  import('../views/userCenter/personalDrawalPsw').then((module) => {
    resolve(module)
  })
}

const BindingName = (resolve) => {
  import('../views/userCenter/bindingName').then((module) => {
    resolve(module)
  })
}

const BindingCard = (resolve) => {
  import('../views/userCenter/bindingCard').then((module) => {
    resolve(module)
  })
}

const BindingCardResult = (resolve) => {
  import('../views/userCenter/bindingCardResult').then((module) => {
    resolve(module)
  })
}

const PersonalCard = (resolve) => {
  import('../views/userCenter/personalCard').then((module) => {
    resolve(module)
  })
}

const ServiceHtml = (resolve) => {
  import('../views/userCenter/serviceHtml').then((module) => {
    resolve(module)
  })
}

const MessageCenter = (resolve) => {
  import('../views/userCenter/messageCenter').then((module) => {
    resolve(module)
  })
}

const MessageDetails = (resolve) => {
  import('../views/userCenter/messageDetails').then((module) => {
    resolve(module)
  })
}

const Setting = (resolve) => {
  import('../views/userCenter/setting').then((module) => {
    resolve(module)
  })
}

const VipCenter = (resolve) => {
  import('../views/vipCenter/vipCenter').then((module) => {
    resolve(module)
  })
}

const Login = (resolve) => {
  import('../views/userCenter/login').then((module) => {
    resolve(module)
  })
}

const Register = (resolve) => {
  import('../views/userCenter/register').then((module) => {
    resolve(module)
  })
} 

const LotteryOrder = (resolve) => {
  import('../views/lottery/lotteryOrder').then((module) => {
    resolve(module)
  })
}

const LotteryOrderResult = (resolve) => {
  import('../views/lottery/lotteryOrderResult').then((module) => {
    resolve(module)
  })
}

const LotteryHistory = (resolve) => {
  import('../views/lottery/lotteryHistory').then((module) => {
    resolve(module)
  })
} 

const TheMyRecord = (resolve) => {
  import('../views/lottery/theMyRecord').then((module) => {
    resolve(module)
  })
}

const MyRecordDtails = (resolve) => {
  import('../views//lottery/myRecordDtails').then((module) => {
    resolve(module)
  })
}

const Bjpk10 = (resolve) => {
  import('../views/lottery/bjpk10/bjpk10').then((module) => {
    resolve(module)
  })
} 

const Bjpk10Trend = (resolve) => {
    import('../views/lottery/bjpk10/bjpk10Trend').then((module) => {
        resolve(module)
    })
}

const Bjpk10Rule = (resolve) => {
  import('../views/lottery/bjpk10/bjpk10Rule').then((module) => {
    resolve(module)
  })
}

const Cqssc = (resolve) => {
  import('../views/lottery/cqssc/cqssc').then((module) => {
    resolve(module)
  })
}

const CqsscTrend = (resolve) => {
    import('../views/lottery/cqssc/cqsscTrend').then((module) => {
        resolve(module)
    })
}

const CqsscRule = (resolve) => {
  import('../views/lottery/cqssc/cqsscRule').then((module) => {
    resolve(module)
  })
}

const Xglhc = (resolve) => {
  import('../views/lottery/xglhc/xglhc').then((module) => {
    resolve(module)
  })
}

const XglhcTrend = (resolve) => {
    import('../views/lottery/xglhc/xglhcTrend').then((module) => {
        resolve(module)
    })
}

const XglhcRule = (resolve) => {
  import('../views/lottery/xglhc/xglhcRule').then((module) => {
    resolve(module)
  })
}


export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/recommend'
    },
    {
      path: '/recommend',
      name:'recommend',
      component: Recommend,
      meta: {
        keepAlive: true // 需要被缓存
      } 
    },
    {
      path: '/lotteryRecord',
      name:'lotteryRecord',
      component: LotteryRecord,
      meta: {
        keepAlive: true // 需要被缓存
      }
    }, 
    {
      path: '/money',
      name:'money',
      component: Money,
    },
    {
      path: '/recharge',
      name:'recharge',
      component: Recharge
    },
    {
      path: '/rechargeHtml',
      name:'rechargeHtml',
      component: RechargeHtml,
    },
    {
      path: '/rechargeOrder',
      name:'rechargeOrder',
      component: RechargeOrder 
    },
    {
      path: '/rechargeResult',
      name:'rechargeResult',
      component: RechargeResult
    },
    {
      path: '/withdrawal',
      name:'withdrawal',
      component: Withdrawal 
    },
    {
      path: '/withdrawalResult',
      name:'withdrawalResult',
      component: WithdrawalResult
    },
    {
      path: '/tradingRecords',
      name:'tradingRecords',
      component: TradingRecords
    },
    {
      path: '/user',
      name:'user',
      component: User 
    },
    {
      path: '/myRecord',
      name:'myRecord',
      component: MyRecord 
    },
    {
      path: '/accountDetails',
      name:'accountDetails',
      component: AccountDetails 
    },
    {
      path: '/personalMsg',
      name:'personalMsg',
      component: PersonalMsg
    },
    {
      path: '/personalLoginPsw',
      name:'personalLoginPsw',
      component: PersonalLoginPsw
    },
    {
      path: '/personalDrawalPsw',
      name:'personalDrawalPsw',
      component: PersonalDrawalPsw
    },
    {
      path: '/bindingName',
      name:'bindingName',
      component: BindingName
    },
    {
      path: '/bindingCard',
      name:'bindingCard',
      component: BindingCard
    },
    {
      path: '/bindingCardResult',
      name:'bindingCardResult',
      component: BindingCardResult
    },
    {
      path: '/personalCard',
      name:'personalCard',
      component: PersonalCard
    },
    {
      path: '/serviceHtml',
      name:'serviceHtml',
      component: ServiceHtml
    },
    {
      path: '/messageCenter',
      name:'messageCenter',
      component: MessageCenter 
    },
    {
      path: '/messageDetails',
      name:'messageDetails',
      component: MessageDetails
    },
    {
      path: '/setting',
      name:'setting',
      component: Setting
    },
    {
      path: '/vipCenter',
      name:'vipCenter',
      component: VipCenter
    },
    {
      path: '/login',
      name:'login',
      component: Login
    },
    {
      path: '/register',
      name:'register',
      component: Register
    },
    {
      path: '/lotteryOrder',
      name:'lotteryOrder',
      component: LotteryOrder
    },
    {
      path: '/lotteryOrderResult',
      name:'lotteryOrderResult',
      component: LotteryOrderResult
    },
    {
      path: '/lotteryHistory',
      name:'lotteryHistory',
      component: LotteryHistory
    },
    {
      path: '/theMyRecord',
      name:'theMyRecord',
      component: TheMyRecord
    },
    {
      path: '/myRecordDtails',
      name:'myRecordDtails',
      component: MyRecordDtails
    },
    {
      path: '/bjpk10',
      name:'bjpk10',
      component: Bjpk10
    },
    {
      path: '/bjpk10Trend',
      name:'bjpk10Trend',
      component: Bjpk10Trend
    },
    {
      path: '/bjpk10Rule',
      name:'bjpk10Rule',
      component: Bjpk10Rule
    },
    {
      path: '/cqssc',
      name:'cqssc',
      component: Cqssc
    },
    {
      path: '/cqsscTrend',
      name:'cqsscTrend',
      component: CqsscTrend
    },
    {
      path: '/cqsscRule',
      name:'cqsscRule',
      component: CqsscRule
    },
    {
      path: '/xglhc',
      name:'xglhc',
      component: Xglhc
    },
    {
      path: '/xglhcTrend',
      name:'xglhcTrend',
      component: XglhcTrend
    },
    {
      path: '/xglhcRule',
      name:'xglhcRule',
      component: XglhcRule
    }
  ]
})
